package cn.leestudio.leelibrary.rest.bussness;

import cn.leestudio.leelibrary.rest.MyCall;
import cn.leestudio.leelibrary.rest.bussness.bean.GetRecommendListReturn;
import cn.leestudio.leelibrary.rest.bussness.bean.LoginReturn;
import cn.leestudio.leelibrary.rest.bussness.bean.ResponseData;
import cn.leestudio.restlib.RestCallback;
import cn.leestudio.restlib.annotation.Cache;
import cn.leestudio.restlib.annotation.Field;
import cn.leestudio.restlib.annotation.FileField;
import cn.leestudio.restlib.annotation.GET;
import cn.leestudio.restlib.annotation.Head;
import cn.leestudio.restlib.annotation.Multipart;
import cn.leestudio.restlib.annotation.POST;
import cn.leestudio.restlib.annotation.Path;
import cn.leestudio.restlib.annotation.Query;


public interface RestApi {

    @GET("Story/StoryVersion/getRecommendList")
    @Cache(policy = "OutlineFirst",time = 1)
    MyCall test6(
            @Query("offset")String offset
            , @Query("limit")String limit
            , @Query("test")String test
            , @Head("auth")String auth
            , RestCallback<ResponseData<GetRecommendListReturn>> restCallback);

    @POST("Center/Story/uploadMp3")
    @Multipart
    MyCall upload(
            @Field("sid")String sid
            , @Field("title")String title
            , @FileField("mp3")String mp3Path
            , RestCallback<String> restCallback);

    @POST("Passport/{User}/loginByCode")
    MyCall login(@Field("mobile")String username,@Field("code")String pass,@Path("{User}")String User, RestCallback<LoginReturn> restCallback);

}